<script type="text/javascript">
  settingsPrivacyVal();
</script>
<div class="col-sm-9 content-right">
  <ol class="breadcrumb">
    <li><a class="route-controller" href="<?php echo site_url('home'); ?>">Home</a></li>
    <li><a class="route-controller" href="<?php echo site_url('settings'); ?>">Settings</a></li>
    <li>Privacy</li>
  </ol>
  <h3>Settings</h3>
  <ul class="nav nav-tabs">
    <li><a class="route-controller" href="<?php echo site_url('settings/general'); ?>">General</a></li>
    <li><a class="route-controller" href="<?php echo site_url('settings/profile'); ?>">Profile</a></li>
    <li><a class="route-controller" href="<?php echo site_url('settings/photo'); ?>">Photo</a></li>
    <li><a class="route-controller" href="<?php echo site_url('settings/password'); ?>">Password</a></li>
    <li class="active"><a class="route-controller" href="<?php echo site_url('settings/privacy'); ?>">Privacy</a></li>
    <li><a class="route-controller" href="<?php echo site_url('settings/notification'); ?>">Notification</a></li>
  </ul>
  <div class="height-gap-10"></div>
  <div class="tab-content clearfix">
    <form id="settings_privacy_form" method="post" action="<?php echo site_url('settings/privacy'); ?>">
      <div class="form-group <?php if ($form_error['type'] == 1) { ?> has-error <?php } ?>">
        <label for="email_privacy">Show Email to</label>
        <select name="email_privacy" id="email_privacy" class="form-control">
          <option value="1" <?php if ($user_data['user_email_privacy'] == 1) { ?> selected="true" <?php } ?>>Nobody</option>
          <option value="2" <?php if ($user_data['user_email_privacy'] == 2) { ?> selected="true" <?php } ?>>Signed In</option>
          <option value="3" <?php if ($user_data['user_email_privacy'] == 3) { ?> selected="true" <?php } ?>>Everybody</option>
        </select>
        <?php if ($form_error['type'] == 1) { ?>
          <small class="help-block"><?php echo $form_error['message']; ?></small>
        <?php } ?>
      </div>
      <div class="form-group <?php if ($form_error['type'] == 2) { ?> has-error <?php } ?>">
        <label for="phone_privacy">Show Phone Numbers to</label>
        <select name="phone_privacy" id="phone_privacy" class="form-control">
          <option value="1" <?php if ($user_data['user_phone_privacy'] == 1) { ?> selected="true" <?php } ?>>Nobody</option>
          <option value="2" <?php if ($user_data['user_phone_privacy'] == 2) { ?> selected="true" <?php } ?>>Signed In</option>
          <option value="3" <?php if ($user_data['user_phone_privacy'] == 3) { ?> selected="true" <?php } ?>>Everybody</option>
        </select>
        <?php if ($form_error['type'] == 2) { ?>
          <small class="help-block"><?php echo $form_error['message']; ?></small>
        <?php } ?>
      </div>
      <div class="form-group <?php if ($form_error['type'] == 3) { ?> has-error <?php } ?>">
        <label for="social_privacy">Show Social Networks to</label>
        <select name="social_privacy" id="social_privacy" class="form-control">
          <option value="1" <?php if ($user_data['user_social_privacy'] == 1) { ?> selected="true" <?php } ?>>Nobody</option>
          <option value="2" <?php if ($user_data['user_social_privacy'] == 2) { ?> selected="true" <?php } ?>>Signed In</option>
          <option value="3" <?php if ($user_data['user_social_privacy'] == 3) { ?> selected="true" <?php } ?>>Everybody</option>
        </select>
        <?php if ($form_error['type'] == 3) { ?>
          <small class="help-block"><?php echo $form_error['message']; ?></small>
        <?php } ?>
      </div>
      <button class="btn btn-danger pull-right" type="submit">Save</button>
    </form>
  </div>
  <?php if ($status) { ?>
    <div class="height-gap-10"></div>
    <div class="alert alert-success ">
      <p><b><?php echo lang('success'); ?></b>&nbsp;:&nbsp;</p>
    </div>
  <?php } ?>
</div>